package com.njust.service;

import com.njust.common.ServerRespone;
import com.njust.dataobject.User;
import com.njust.vo.UserVO.PasswordVO;


/**
 * @author zjwpro@foxmail.com
 * @date 2018/1/12 下午5:39
 */
public interface UserService {
    //保存或更新用户
    ServerRespone save(User user);

    //更新用户
    ServerRespone update(User user);

    //删除用户
    ServerRespone deleteUser(String username);

    //登入用户
    User login(User user);

    //通过用户名找到用户的具体信息
    ServerRespone findByUsername(String username);


    //用户修改密码
    ServerRespone modifyPassword(PasswordVO passwordVO);

    ServerRespone findAllUsers();
}
